<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/pages/taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>鸽子养殖管理系统</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">

    <link rel="stylesheet" href="${ctx}/css/user.css">
    <link rel="stylesheet" href="${ctx}/common/layui/css/layui.css" media="all">

    <script type="text/javascript" src="${ctx}/common/layui/layui.js"></script>
    <script type="text/javascript" src="${ctx}/js/util.js"></script>
    <script>
        var ctx = "${ctx}";
    </script>
    <style>
        .layui-form-select {
            width: 250px;
        }
    </style>
</head>

<body>
<form class="layui-form" id="form" action="">
    <input id="id" name="id" type="hidden" value=""/>
    <div class="layui-form-item" style="margin-top: 10px">
        <label class="layui-form-label"><span style="color: red">*</span>成本名称</label>
        <div class="layui-input-input">
            <input type="text" id="costName" name="costName" style="width:50%" required lay-verify="required"
                   lay-reqtext="名称不能为空" placeholder="请输入名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item" style="margin-top: 10px">
        <label class="layui-form-label"><span style="color: red">*</span>成本数量</label>
        <div class="layui-input-input">
            <input type="text" id="costNum" name="costNum" style="width:50%"
                   placeholder="请输入数量" class="layui-input" autocomplete="off">
        </div>
    </div>
    <div class="layui-form-item" style="margin-top: 10px">
        <label class="layui-form-label"><span style="color: red">*</span>成本价格</label>
        <div class="layui-input-input">
            <input type="text" id="costPrice" name="costPrice" style="width:50%" required autocomplete="off"
                   lay-verify="required" placeholder="请输入成本价格" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" style="margin-top: 10px">
        <label class="layui-form-label">总价</label>
        <div class="layui-input-input">
            <input type="text" id="sumPrice" name="sumPrice" style="width:50%" required autocomplete="off"
                   class="layui-input">
        </div>
    </div>


    <div class="layui-form-item" style="margin-top: 10px">
        <label class="layui-form-label">购买时间</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="purchaseTime" name="purchaseTime" placeholder="yyyy-MM-dd" autocomplete="off">
        </div>
    </div>

    <div class="layui-form-item" style="margin-top: 10px">
        <label class="layui-form-label">购买人</label>
        <div class="layui-input-input">
            <input type="text" id="buyer" name="buyer" autocomplete="off" style="width:50%"
                   class="layui-input">
        </div>
    </div>


    <%--<shiro:hasPermission name="buDictionaries:update">--%>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <!-- button自带提交属性，影响ajax提交，增加type="button" -->
            <button id="submit" type="button" class="layui-btn" lay-submit lay-filter="save">保存</button>
            <button id="reset" type="reset" class="layui-btn layui-btn-primary">重置</button>
            <button id="back" type="button" class="layui-btn layui-btn-primary" lay-submit lay-filter="back">返回</button>
        </div>
    </div>
    <%--</shiro:hasPermission>--%>

</form>
<%--<!-- 工具条 -->
<script type="text/html" id="barDictionaries">
    &lt;%&ndash;<shiro:hasPermission name="knowledge:update">&ndash;%&gt;
    <a class="layui-btn layui-btn-xs" lay-event="save">保存</a>
    &lt;%&ndash;</shiro:hasPermission>&ndash;%&gt;
    &lt;%&ndash;<shiro:hasPermission name="knowledge:delete">&ndash;%&gt;
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    &lt;%&ndash;</shiro:hasPermission>&ndash;%&gt;
</script>--%>

<script type="text/javascript" src="${ctx }/js/pigeons/addOrUpdateCost.js"></script>
</body>
</html>

